TARGET = obj
OBJ = main.o func.o
CC = gcc
CFLAGS = -Wall -c

$(TARGET):$(OBJ)
	$(CC) -o obj $(OBJ)

main.o:main.c
	$(CC) $(CFLAGS) main.c

func.o:func.c
	$(CC) $(CFLAGS) func.c

clean:
	rm *.o obj
